package com.tensquare.article.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import util.IdWorker;

/**
 * @author Alfred
 * @description TODO
 * @date 2021/4/23 20:17
 */
@Configuration   //将bean加入IOC
public class MyConfig_1 {

    @Bean
    public IdWorker idWorker(){
        return new IdWorker(1,1);
    }
}
